<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * Class Club
 * @package App
 */
class Club extends Model
{
    /**
     * @var array
     */
    protected $fillable=['club_name','club_intro','club_address','club_phone','work_time','club_pic'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function coaches()
    {
        return $this->hasMany(ClubCoaches::class);
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function leader()
    {
        return $this->hasOne(ClubLeader::class);
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function lessons()
    {
        return $this->hasMany(ClubLessons::class);
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function videos()
    {
        return $this->hasMany(ClubVideos::class);
    }
}
